<!DOCTYPE html>
<html>
 <head lang="en"> 
  <meta charset="UTF-8" /> 
  <title>忘记密码</title> 
  <meta http-equiv="X-UA-Compatible" content="IE=edge" /> 
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" /> 
  <meta name="format-detection" content="telephone=no" /> 
  <meta name="renderer" content="webkit" /> 
  <meta http-equiv="Cache-Control" content="no-siteapp" /> 
  <link rel="stylesheet" href="/ho/AmazeUI-2.4.2/assets/css/amazeui.css" /> 
  <link href="/ho/css/dlstyle.css" rel="stylesheet" type="text/css" /> 
  <script src="/ho/AmazeUI-2.4.2/assets/js/jquery.min.js"></script>
 </head> 
 <body> 
  <div class="login-boxtitle"> 
   <a href="/home/index"><img alt="logo" src="/ho/images/logobig.png" /></a> 
  </div> 
  <div class="login-banner"> 
   <div class="login-main"> 
    <div class="login-banner-bg">
     <span></span>
     <img src="/ho/images/big.jpg" />
    </div> 
    <div class="login-box"> 
     <h3 class="title">忘记密码</h3> 
     <div class="clear"></div> 
     <div class="login-form"> 
     @if (count($errors) > 0)
        <div style="color:red;" class="one" onclick="$(this).css('display','none')">
          验证失败：
            <ul>
                @foreach ($errors->all() as $error)
                    <li>{{ $error }}</li>
                @endforeach
            </ul>
        </div>
    @endif
     <div>
      <form action="/home/register/forget" method="post">
        {{ csrf_field() }} 
       <div class="user-name"> 
        <label for="email"><i class="am-icon-envelope-o"></i></label> 
        <input type="text" name="uemail" id="email" placeholder="邮箱" /> 
       </div>
       <div id='ajax'></div>
      <input type="submit" name="" value="发送验证" class="am-btn am-btn-primary am-btn-sm" disabled /> 
     </div>
      </form>
      <a href="/home/register/forgetphone" style="color:blue;text-decoration:underline;">手机号重置密码？点击此处</a>
    
    </div> 
   </div> 
  </div> 
  <div class="footer "> 
   <div class="footer-hd "> 
    <p> <a href="# ">恒望科技</a> <b>|</b> <a href="# ">商城首页</a> <b>|</b> <a href="# ">支付宝</a> <b>|</b> <a href="# ">物流</a> </p> 
   </div> 
   <div class="footer-bd "> 
    <p> <a href="# ">关于恒望</a> <a href="# ">合作伙伴</a> <a href="# ">联系我们</a> <a href="# ">网站地图</a> <em>&copy; 2015-2025 Hengwang.com 版权所有</em> </p> 
   </div> 
  </div>
      <script>
          $('#email').blur(function(){
            var preg = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/ ;
            var str = $(this).val();
            if(preg.test(str)){
              $.get('/home/register/ajax',{'email':$(this).val()},function (msg){
                if(msg==1){
                  $('#ajax').text('√').css('color','green');
                  $('input[type=submit]').removeAttr('disabled');
                }else{
                  $('#ajax').text('邮箱不存在').css('color','red');
                  $('input[type=submit]').attr('disabled','disabled');
                }
              });
            }else{
              $('#ajax').text('邮箱格式有误').css('color','red');
              $('input[type=submit]').attr('disabled','disabled');
            }
          });
      </script>
 </body>
</html>